export {};

export enum ReceiveMessageType {
  SelectedInfo = 0,
  InitDevice = 1,
  SelectedType = 2,
  loadMultipleModels = 3,
  //错误日志信息
  LogError = 4,
  Initialized = 5,
  TaskComplete = 8, // 新增任务完成类型
  TrayFlow = 9,//托盘流量
}

export enum SendMessageType {
  //修改模型信息
  ChangeModel = 0,
  PlayModel = 2,
  LoadModel = 3,
  ChooseModel = 4,
  TaskAssignment = 8,
  TaskCompleteResponse = 9, // 新增任务完成响应类型
}

export enum Platform {
  web2unity = 0,
  unity2web = 1,
  android = 2,
  ios = 3,
}

declare global {
  //发送到unity的数据格式
  interface SendUnityData {
    type: SendMessageType;
    data: any;
    platform?: Platform;
  }

  interface ReceiveUnityData {
    type: ReceiveMessageType;
    data: any;
    platform?: Platform;
  }
}
